package com.htdata.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropUtil {
	public static String getRunValue(String key){
		InputStream in = PropUtil.class.getResourceAsStream("/load.properties");
		try {
			Properties prop = new Properties();
			prop.load(in);
			String val = prop.getProperty(key);
			return val;
		} catch (IOException e) {
			e.printStackTrace();
		}finally{
			try {
				if(in != null)
					in.close();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		return null;
	}
}
